import request from '@/utils/request'

// 请假休息列表
export function fetchRestList(data) {
	return request({
		url: '/rest/getList',
		method: 'POST',
		data: data
	})
}

// 创建请假记录
export function createRest(data) {
	return request({
		url: '/rest/create',
		method: 'POST',
		data: data
	})
}

// 请假审批
export function ratifyRest(data) {
	return request({
		url: '/rest/ratify',
		method: 'POST',
		data: data
	})
}

// 请假取消
export function leaveCancel(data) {
	return request({
		url: '/rest/cancel',
		method: 'POST',
		data: data
	})
}



// WEBPACK FOOTER //
// ./src/api/leave.js